/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mobiubiq.directory.client.data;

import java.util.Enumeration;
import org.kalmeo.kuix.core.model.DataProvider;

/**
 *
 * @author Marnix Renne
 */
public class ServiceSettingsDataProvider extends DataProvider {
    public static final String SETTINGS = "settings";
    public ServiceSettingsDataProvider() {
        Enumeration e = ServiceSettingsRecordStore.getServiceIds().elements();
        while(e.hasMoreElements()) {
            final String id = (String) e.nextElement();
            addItem(SETTINGS, new DataProvider() {
                protected Object getUserDefinedValue(String property) {
                    return id;
                }
            });
        }
    }
}
